home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
winsock
/
ircii2-6.zip
/
SRC\IRCII-2.6\SOURCE\COUNT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-12-28
|
297b
|
19 lines
#include <stdio.h>
#include <string.h>
static char buffer[2048];
main()
{
int n = 0;
while (gets(buffer))
{
if (!strncmp(buffer, "#define", 7) &&
buffer[strlen(buffer) - 1] == '$')
sprintf(buffer + strlen(buffer) - 1, "%d", n++);
puts(buffer);
}
return 0;
}